import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
// assets
import { DepositComponent } from "@/assets/cpt/deposit/deposit.component";
import { WithdrawComponent } from "@/assets/cpt/withdraw/withdraw.component";
import { AssetsListsComponent } from "@/assets/cpt/assets-lists/assets-lists.component";
import { AddressComponent } from "@/assets/cpt/address/address.component";
import { HistoryComponent } from "@/assets/cpt/history/history.component";
import { NavComponent } from "@/assets/cpt/nav/nav.component";
import { HomeComponent } from "@/assets/cpt/home/home.component";

const routes: Routes = [
  {
    path: "deposit",
    component: DepositComponent,
    canActivate: ["AuthGuardService"],
    data: {}
  },
  {
    path: "history",
    component: HistoryComponent,
    canActivate: ["AuthGuardService"],
    data: {}
  },
  {
    path: "withdraw",
    component: WithdrawComponent,
    canActivate: ["AuthGuardService"],
    data: {}
  },
  {
    path: "lists",
    component: AssetsListsComponent,
    canActivate: ["AuthGuardService"],
    data: {}
  }
  // {
  //   path: "address",
  //   component: AddressComponent,
  //   canActivate: [],
  //   data: {}
  // }
  // {
  //   path: "home",
  //   component: HomeComponent,
  //   canActivate: [],
  //   data: {},
  //   children: [
  //     {
  //       path: "deposit",
  //       component: DepositComponent,
  //       canActivate: [],
  //       data: {}
  //     },
  //     {
  //       path: "history",
  //       component: HistoryComponent,
  //       canActivate: [],
  //       data: {}
  //     },
  //     {
  //       path: "withdraw",
  //       component: WithdrawComponent,
  //       canActivate: [],
  //       data: {}
  //     },
  //     {
  //       path: "lists",
  //       component: AssetsListsComponent,
  //       canActivate: [],
  //       data: {}
  //     },
  //     {
  //       path: "address",
  //       component: AddressComponent,
  //       canActivate: [],
  //       data: {}
  //     }
  //   ]
  // }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AssetsRoutingModule {}
